<%@page language="java" contentType="text/html; charset=UTF-8" isELIgnored="false" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@taglib prefix="html" tagdir="/WEB-INF/tags" %>
<!DOCTYPE html>
<html>
<html:header title="企业资料维护">
    <link rel="stylesheet" href="${baseUrl}css/public.css" media="all">

    <style>
        body{
            overflow:scroll;
            overflow-y:hidden;
        }
    </style>
    <script>

        jQuery(function () {
            var h = $(window).height()-100;
            $("iframe").css("height",h+"px");
        });
    </script>
</html:header>
<body style="height: 100%;" scrolling="no">
<div class="layuimini-container">
    <div class="layuimini-main">
        <div class="layui-tab layui-tab-brief" style="height: 100%">
            <ul class="layui-tab-title">
                <li class="layui-this">基本资料</li>
                <li lay-id="logo">企业logo</li>
            </ul>
            <div class="layui-tab-content">
                <div class="layui-tab-item layui-show">
                    <iframe id="companyInfo" src="${baseUrl}account/companyInfo.action" frameborder="0" width="100%">
                    </iframe>
                </div>

                <div class="layui-tab-item">
                    <iframe id="companyLogo" src="${baseUrl}account/companyLogo.action" frameborder="0" width="100%">
                    </iframe>
                </div>
            </div>
        </div>
    </div>
</div>
</body>

<script>
    layui.use(['form', 'layedit', 'laydate','element'], function(){
        var form = layui.form
            ,layer = layui.layer
            ,layedit = layui.layedit
            ,laydate = layui.laydate
            ,element = layui.element;

        //获取hash来切换选项卡，假设当前地址的hash为lay-id对应的值
        var layid = location.hash.replace(/^#test1=/, '');
        element.tabChange('test1', layid); //假设当前地址为：http://a.com#test1=222，那么选项卡会自动切换到“发送消息”这一项
    });
</script>
</html>